package com.facebook.imagepipeline.core;

import com.facebook.common.webp.WebpSupportStatus;

public class ImagePipelineExperiments
{
  private boolean mDecodeFileDescriptorEnabled;
  private final int mForceSmallCacheThresholdBytes;
  private final int mThrottlingMaxSimultaneousRequests;
  private final boolean mWebpSupportEnabled;

  private ImagePipelineExperiments(Builder paramBuilder, ImagePipelineConfig.Builder paramBuilder1)
  {
    this.mForceSmallCacheThresholdBytes = paramBuilder.mForceSmallCacheThresholdBytes;
    boolean bool2;
    if ((paramBuilder.mWebpSupportEnabled) && (WebpSupportStatus.sWebpLibraryPresent))
    {
      bool2 = bool1;
      this.mWebpSupportEnabled = bool2;
      if ((!paramBuilder1.isDownsampleEnabled()) || (!paramBuilder.mDecodeFileDescriptorEnabled))
        break label70;
    }
    while (true)
    {
      this.mDecodeFileDescriptorEnabled = bool1;
      this.mThrottlingMaxSimultaneousRequests = paramBuilder.mThrottlingMaxSimultaneousRequests;
      return;
      bool2 = false;
      break;
      label70: bool1 = false;
    }
  }

  public static Builder newBuilder(ImagePipelineConfig.Builder paramBuilder)
  {
    return new Builder(paramBuilder);
  }

  public int getForceSmallCacheThresholdBytes()
  {
    return this.mForceSmallCacheThresholdBytes;
  }

  public int getThrottlingMaxSimultaneousRequests()
  {
    return this.mThrottlingMaxSimultaneousRequests;
  }

  public boolean isDecodeFileDescriptorEnabled()
  {
    return this.mDecodeFileDescriptorEnabled;
  }

  public boolean isWebpSupportEnabled()
  {
    return this.mWebpSupportEnabled;
  }

  public static class Builder
  {
    private static final int DEFAULT_MAX_SIMULTANEOUS_FILE_FETCH_AND_RESIZE = 5;
    private final ImagePipelineConfig.Builder mConfigBuilder;
    private boolean mDecodeFileDescriptorEnabled = false;
    private int mForceSmallCacheThresholdBytes = 0;
    private int mThrottlingMaxSimultaneousRequests = 5;
    private boolean mWebpSupportEnabled = false;

    public Builder(ImagePipelineConfig.Builder paramBuilder)
    {
      this.mConfigBuilder = paramBuilder;
    }

    public ImagePipelineExperiments build()
    {
      return new ImagePipelineExperiments(this, this.mConfigBuilder, null);
    }

    public ImagePipelineConfig.Builder setDecodeFileDescriptorEnabled(boolean paramBoolean)
    {
      this.mDecodeFileDescriptorEnabled = paramBoolean;
      return this.mConfigBuilder;
    }

    public ImagePipelineConfig.Builder setForceSmallCacheThresholdBytes(int paramInt)
    {
      this.mForceSmallCacheThresholdBytes = paramInt;
      return this.mConfigBuilder;
    }

    public ImagePipelineConfig.Builder setThrottlingMaxSimultaneousRequests(int paramInt)
    {
      this.mThrottlingMaxSimultaneousRequests = paramInt;
      return this.mConfigBuilder;
    }

    public ImagePipelineConfig.Builder setWebpSupportEnabled(boolean paramBoolean)
    {
      this.mWebpSupportEnabled = paramBoolean;
      return this.mConfigBuilder;
    }
  }
}

/* Location:           C:\Users\user\Desktop\dd28_pcdd720\classes_dex2jar.jar
 * Qualified Name:     com.facebook.imagepipeline.core.ImagePipelineExperiments
 * JD-Core Version:    0.6.2
 */